package org.hcf.data.service;

import org.hcf.data.entity.ChatFriend;
import org.hcf.data.entity.ChatGroup;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 群组 服务类
 * </p>
 *
 * @author xianiyitiao
 * @since 2024-04-18
 */
public interface IChatGroupService extends IService<ChatGroup> {

    List<ChatGroup> getGroups(List<Long> groupIds);

    boolean updateReceive(long id, boolean isReceive);

    List<Long> getFriendsByLastTime(List<Long> groupIds, LocalDateTime lastTime);

    Long getByAccount(String groupAccount);
}
